package com.imedway.ihe.dtz.pix.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.imedway.ihe.dtz.pix.vo.Iti18VO;

import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;


@Slf4j
@RestController
@RequestMapping("/ihe/pix")
public class Iti8ServiceRest {
	
    @PostMapping(value = "iti8", consumes = "application/json")
    public Object iti8Post(@RequestBody Iti18VO iti18VO)  {
    	return  this.iti8Get(iti18VO);

    }
    
    @GetMapping(value = "iti8", consumes = "application/json")
    public Object iti8Get(@RequestBody Iti18VO iti18VO)  {
    	log.info(JSONUtil.toJsonStr(iti18VO));
    	return JSONUtil.toJsonStr(iti18VO);

    }
}
